/**
 * Copyright (c) 2007/2008 by Rowan Rodrik van der Molen
 *
 * This file is part of readline-trainer.
 *
 * readline-trainer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * at your option) any later version.
 *
 * readline-trainer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with readline-trainer.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <stdlib.h>

#include "lessons.h"


trrl_exercise_ptr
trrl_new_exercise()
{
    trrl_exercise_ptr new_exercise = malloc( sizeof(trrl_exercise) );

    new_exercise->instruction = NULL;
    new_exercise->hint = NULL;
    new_exercise->line = NULL;
    new_exercise->next_exercise = NULL;

    return new_exercise;
}


trrl_lesson_ptr
trrl_new_lesson()
{
    trrl_lesson_ptr new_lesson = malloc( sizeof(trrl_lesson) );

    new_lesson->number = 0;
    new_lesson->title = NULL;
    new_lesson->first_exercise = NULL;
    new_lesson->next_lesson = NULL;

    return new_lesson;
}


// vim: set expandtab tabstop=4 shiftwidth=4:
